﻿<?php
	require 'config.php';
	require 'aes-lib.php';
	
	$query = $_GET['query'];	
	
	$link = mysql_connect($DBServer, $DBUser, $DBPassword);
	mysql_select_db($DBName, $link);
	mysql_query("SET NAMES 'utf8';", $link);
	mysql_query("SET CHARACTER SET 'utf8';", $link);
	mysql_query("SET SESSION collation_connection = 'utf8_general_ci';", $link);
		
	$AESDecryptQuery = AESDecryptCtr(base64_decode($query), $AESKey, 256);		
	
	mysql_query($AESDecryptQuery);		
	mysql_close($link);
?>
